import { ref } from 'vue'

export const useUser = () => {
  const userColumns = ref([
    {
      title: 'ID',
      dataIndex: 'id',
      fixed: 'left',
      width: 200
    },
    {
      title: '姓名',
      dataIndex: 'name'
    },
    {
      title: '手机号',
      dataIndex: 'phone'
    },
    {
      title: '减碳量',
      dataIndex: 'carbon'
    },
    {
      title: '积分',
      dataIndex: 'score'
    },
    {
      title: '等级',
      dataIndex: 'level'
    },
    {
      title: '创建时间',
      dataIndex: 'createTime'
    }
  ])

  return {
    userColumns
  }
}
